<template>
  <div class="store-container">
    <!-- 查询部分 -->
    <StoreSales :getDataList="newList" :newCount="count"></StoreSales>
    <!-- 明细数据部分 -->
    <StoreDetaildata @getStoreData="getNewMethod(arguments)"></StoreDetaildata>
  </div>
</template>

<script>
import StoreSales from '../../components/zcs/Store/StoreSales.vue'
import StoreDetaildata from '../../components/zcs/Store/StoreDetaildata.vue'
export default {
  data() {
    return {
      newList: [],
      count: 0
    }
  },

  methods: {
    getNewMethod(val) {
      this.newList = val[0]
      this.count = val[1]

      // console.log(this.newList)
      // console.log(this.count)
    }
  },
  components: {
    StoreSales,
    StoreDetaildata
  }
}
</script>

<style lang="less" scoped></style>
